package net.webservicex.client;

import net.webservicex.GlobalWeather;
import net.webservicex.GlobalWeatherSoap;

public class WeatherClient {
	public static void main(String[] args) {
		//创建webservice服务视图
		GlobalWeather globalWeather = new GlobalWeather();
		//通过视图得到服务端点
		GlobalWeatherSoap globalWeatherSoap = globalWeather.getGlobalWeatherSoap();
		//可以通过服务端点调用webservi接口
		String weather = globalWeatherSoap.getWeather("Kunming","China");
		System.out.println(weather);
		String citiesByCountry = globalWeatherSoap.getCitiesByCountry("China");
		System.out.println(citiesByCountry);
	}

}
